#pragma once

#include <bofcl_btimer_r.h>

typedef struct {
	u32_s TIMESTOP : 1;
} btimer_mstop_s;

static inline void btimer_wreg_mstop_s_by_q(u32_s btimer_q,
					    btimer_mstop_s mstop) {
	union {
		btimer_mstop_s m;
		u32_s u;
	} mu = {
		.m = mstop,
	};
	btimer_wreg_by_q(btimer_q, BTIMER_MSTOP_R, mu.u);
}
